LearningStoreTransactionScope Constructor (Transaction)

Initializes a new instance of the LearningStoreTransactionScope class. LearningStore jobs executed within the scope use the specified transaction.

Parent Type: LearningStoreTransactionScope

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LearningStoreTransactionScope (
Transaction transaction

)

Parameters

transaction

Transaction used by LearningStore operations within the scope.

Exceptions
Exception type Condition
ArgumentNullException

transaction is a null reference.

InvalidOperationException

A transaction already exists in this scope (i.e., this scope is nested inside another).

Remarks

See LearningStoreTransactionScope for more information.